import axios from "@/axios_env/interceptors";


export default class AliPayApi {

    //在这边设置后台支付地址
    static payUrl = "http://vpnbackend.kshost.cn"

    //发起支付
    static pay(user, plan) {
        return axios.get(`${this.payUrl}/alipay/pay?planId=${plan.planId}&userId=${user.userId}`)
    }
    //轮询检查是否支付成功
    static verifyIsPay(aliData) {
        return axios.get(`${this.payUrl}/alipay/verifyIsPay?orderId=${aliData.out_trade_no}`)
    }
}



